High-Tech LEGO Chapter 12: Heat Seeking Cannon
Here's a video of the Heat-Seeking Cannon built in Chapter 12. The cannon only fires upon a target that is warmer than ambient temperature--the hot cup of tea in this example. The glass of ice water is safe from assault.